package cn.school.demo.ui.my

import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import cn.school.demo.MyApplication
import cn.school.demo.pojo.Result
import cn.school.demo.repository.MyRepository

class MyViewModel : ViewModel() {

    private lateinit var _result: LiveData<Result>
    val result: LiveData<Result>
        get() = _result

    fun userSign() {
        _result = MyRepository().userSign(MyApplication.user!!.sfNumber)
    }
}